<div class="paginas view">
<h2><?php echo __('Pagina'); ?></h2>
	<dl>
		<dt><?php echo __('Id'); ?></dt>
		<dd>
			<?php echo h($pagina['Pagina']['id']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Descripcion'); ?></dt>
		<dd>
			<?php echo h($pagina['Pagina']['descripcion']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Template'); ?></dt>
		<dd>
			<?php echo $this->Html->link($pagina['Template']['descripcion'], array('controller' => 'templates', 'action' => 'view', $pagina['Template']['id'])); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Texto'); ?></dt>
		<dd>
			<?php echo h($pagina['Pagina']['texto']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Titulo'); ?></dt>
		<dd>
			<?php echo h($pagina['Pagina']['titulo']); ?>
			&nbsp;
		</dd>
        <dt><?php echo __('Es segura'); ?></dt>
        <dd>
            <?php echo h($pagina['Pagina']['segura']); ?>
            &nbsp;
        </dd>
		<dt><?php echo __('Email Contacto'); ?></dt>
		<dd>
			<?php echo h($pagina['Pagina']['email_contacto']); ?>
			&nbsp;
		</dd>
        <dt><?php echo __('Mapa chico'); ?></dt>
        <dd>
            <?php echo h($pagina['Pagina']['mapa_chico']); ?>
            &nbsp;
        </dd>
        <dt><?php echo __('Mapa grande'); ?></dt>
        <dd>
            <?php echo h($pagina['Pagina']['mapa']); ?>
            &nbsp;
        </dd>
	</dl>
</div>
<div class="actions">
	<h3><?php echo __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Pagina'), array('action' => 'edit', $pagina['Pagina']['id'])); ?> </li>
		<li><?php echo $this->Form->postLink(__('Delete Pagina'), array('action' => 'delete', $pagina['Pagina']['id']), null, __('Are you sure you want to delete # %s?', $pagina['Pagina']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Paginas'), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Pagina'), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Templates'), array('controller' => 'templates', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Template'), array('controller' => 'templates', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Albums'), array('controller' => 'albums', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Album'), array('controller' => 'albums', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Menu Items'), array('controller' => 'menu_items', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Menu Item'), array('controller' => 'menu_items', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Videos'), array('controller' => 'videos', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Video'), array('controller' => 'videos', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php echo __('Related Albums'); ?></h3>
	<?php if (!empty($pagina['Album'])): ?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('Nombre'); ?></th>
		<th><?php echo __('Pagina Id'); ?></th>
		<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	<?php foreach ($pagina['Album'] as $album): ?>
		<tr>
			<td><?php echo $album['id']; ?></td>
			<td><?php echo $album['nombre']; ?></td>
			<td><?php echo $album['pagina_id']; ?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'albums', 'action' => 'view', $album['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'albums', 'action' => 'edit', $album['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'albums', 'action' => 'delete', $album['id']), null, __('Are you sure you want to delete # %s?', $album['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Album'), array('controller' => 'albums', 'action' => 'add')); ?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php echo __('Related Menu Items'); ?></h3>
	<?php if (!empty($pagina['MenuItem'])): ?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('Nivel'); ?></th>
		<th><?php echo __('Padre'); ?></th>
		<th><?php echo __('Descripcion'); ?></th>
		<th><?php echo __('Link'); ?></th>
		<th><?php echo __('Menu Order'); ?></th>
		<th><?php echo __('Codigo'); ?></th>
		<th><?php echo __('Pagina Id'); ?></th>
		<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	<?php foreach ($pagina['MenuItem'] as $menuItem): ?>
		<tr>
			<td><?php echo $menuItem['id']; ?></td>
			<td><?php echo $menuItem['nivel']; ?></td>
			<td><?php echo $menuItem['padre']; ?></td>
			<td><?php echo $menuItem['descripcion']; ?></td>
			<td><?php echo $menuItem['link']; ?></td>
			<td><?php echo $menuItem['menu_order']; ?></td>
			<td><?php echo $menuItem['codigo']; ?></td>
			<td><?php echo $menuItem['pagina_id']; ?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'menu_items', 'action' => 'view', $menuItem['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'menu_items', 'action' => 'edit', $menuItem['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'menu_items', 'action' => 'delete', $menuItem['id']), null, __('Are you sure you want to delete # %s?', $menuItem['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Menu Item'), array('controller' => 'menu_items', 'action' => 'add')); ?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php echo __('Related Videos'); ?></h3>
	<?php if (!empty($pagina['Video'])): ?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('Url'); ?></th>
		<th><?php echo __('Thumb'); ?></th>
		<th><?php echo __('Descripcion'); ?></th>
		<th><?php echo __('Pagina Id'); ?></th>
		<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	<?php foreach ($pagina['Video'] as $video): ?>
		<tr>
			<td><?php echo $video['id']; ?></td>
			<td><?php echo $video['url']; ?></td>
			<td><?php echo $video['thumb']; ?></td>
			<td><?php echo $video['descripcion']; ?></td>
			<td><?php echo $video['pagina_id']; ?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'videos', 'action' => 'view', $video['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'videos', 'action' => 'edit', $video['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'videos', 'action' => 'delete', $video['id']), null, __('Are you sure you want to delete # %s?', $video['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Video'), array('controller' => 'videos', 'action' => 'add')); ?> </li>
		</ul>
	</div>
</div>
